package com.sunop.judge.controller;


import com.sunop.judge.model.JudgeInput;
import com.sunop.judge.service.JudgeService;
import com.sunop.panticommon.entity.Result;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/judge")
@AllArgsConstructor
public class JudgeController {
    private final JudgeService judgeService;


    @PostMapping()
    public Result judge(@RequestBody JudgeInput args){
        return judgeService.judge(args);
    }

}
